// axios中的默认配置项
const defaults = {

}
class Axios {
	request(){
		console.log("request");
	}
}

function createInstance() {
	// 实例化Axios类，得到的实例赋值给常量context
	const context = new Axios();
	// 将Axios.prototype.request函数中的this绑定为context,赋值给常量instance
	const instance = Axios.prototype.request.bind(context)
	return instance;
}

const axios = createInstance(defaults);
export default axios;